﻿@{
    Layout = null;
}

<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="zh" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    @Html.Partial("_Title")
    @Html.Raw(ViewBag.CssFile)
</head>
<body class="fixed-top">
    @Html.Partial("_Top")
    <div id="container" class="row-fluid @ViewBag.MenuStatus">
        @Html.Partial("_LeftMenu")
        <div id="body">
            <div id="widget-config" class="modal hide">
                <div class="modal-header">
                    <button data-dismiss="modal" class="close" type="button"></button>
                    <h3>widget Settings</h3>
                </div>
                <div class="modal-body">
                    <p>Here will be a configuration form</p>
                </div>
            </div>
            <div class="container-fluid">
                <div class="row-fluid">
                    <div class="span12">
                        @Html.Raw(ViewBag.NavMenu)
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span12">
                        <div class="widget box light-grey">
                            <div class="widget-title">
                                <h4><i class="icon-globe"></i>报损管理</h4>
                                <div class="tools">
                                    <a href="javascript:void(0);" class="collapse"></a>
                                    <a href="#widget-config" data-toggle="modal" class="config"></a>
                                    <a href="javascript:void(0);" class="reload"></a>
                                    <a href="javascript:void(0);" class="remove"></a>
                                </div>
                            </div>
                            <div class="widget-body">
                                <div class="clearfix margin-bottom-10">
                                    <div class="btn-group" id="btnStatusGroup">
                                        <button class="btn disabled" value="0">所有</button>
                                        <button class="btn" value="1">待审核</button>
                                        <button class="btn" value="2">审核通过</button>
                                        <button class="btn" value="3">审核失败</button>
                                    </div>
                                    <div class="actions  pull-right">
                                        <a class="btn btn-primary" href="/Bad/Product/Add"><i class="icon-pencil"></i>&nbsp;新增</a>
                                        <a class="btn btn-danger" href="javascript:void(0)" onclick="ProductBadManager.BatchDel()"><i class="icon-trash"></i>&nbsp;删除</a>
                                        <a class="btn btn-info" href="javascript:void(0)" onclick="ProductBadManager.ToExcel()"><i class="icon-download"></i>&nbsp;导出</a>
                                    </div>
                                </div>

                                <div class="row-fluid">
                                    <form class="form-horizontal" action="javascript:void(0)">
                                        <div class="control-group">
                                            <div class="controls controls-cus">
                                                <input id="txtOrderNum" name="txtOrderNum" type="text" class="input-medium" placeholder="请输入报损单号"  />&nbsp;&nbsp;
                                                时间&nbsp;<input id="txtBeginTime" name="txtBeginTime" type="text" class="input-medium" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                                                -<input id="txtEndTime" name="txtEndTime" type="text" class="input-medium" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>&nbsp;&nbsp;
                                                <a id="gritter-remove-all" class="btn btn-info" href="javascript:void(0)" onclick="ProductBadManager.PageClick(1)"><i class="icon-search"></i>&nbsp;搜索</a>
                                                
                                            </div>
                                        </div>
                                    </form>
                                </div>

                                <table class="table table-striped table-bordered table-hover" id="tabInfo">
                                    <thead>
                                        <tr class="widget-title">
                                            <th style="width: 8px;"><input type="checkbox" class="group-checkable" onclick="ProductBadManager.SelectAll(this)" /></th>
                                            <th class="hidden-480">单据编号</th>
                                            <th class="hidden-480">报损类型</th>
                                            <th class="hidden-480">关联单号</th>
                                            <th class="hidden-480">报损数量</th>
                                            <th class="hidden-480">状态</th>
                                            <th class="hidden-480">操作方式</th>
                                            <th class="hidden-480">创建人</th>
                                            <th class="hidden-480">创建时间</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                                <div class="row-fluid" id="mypager">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @Html.Partial("_Foot")
    <script type="text/javascript">
        $(document).ready(function () {
            ProductBadManager.PageClick(1, 10);
            ProductBadManager.TabClick();
        });
    </script>
</body>

</html>
